<div class="MainBody">
    <?php echo $html->getTitle('cName')?>    
    <div class="Content">
        <?php if(count($ArrIntro)>0){?>
            <?php echo $ArrIntro['intro']?>
            <?php
            if(strlen($ArrIntro['intro2'])>15)
            {
                ?>                
                <div id="readmore" style="display: none;"><?php echo $ArrIntro['intro2']?></div>
                <div><a style="cursor: pointer;" onclick="readmore(this,'readmore')">read more </a>>></div>
                <br />
                <script>
                function readmore(tagl,ids)
                {
                    var obj=document.getElementById(ids);
                    if(obj.style.display=='none')
                    {
                        obj.style.display = '';
                        tagl.innerHTML = 'read less';
                    }else
                    {
                        obj.style.display = 'none';
                        tagl.innerHTML = 'read more';
                    }
                }
                </script>
                <?php
           }
        }?>
    </div>
    <?php if($html->getContent('type')=='content'){?>
        <table class="product">
            <tr>
                <td>
                    <div class="msg2">
                     <?php echo $html->getContent('cContent')?>
                    </div>
                </td>   
                <td class="img2" valign="middle" align="center">
                    <?/*<img id="PhotoShow" src="<? echo $html->getIntroImage()?>" width="250" />*/?>
                    <div id="PhotoShow" style="display: table-cell; vertical-align: middle;"></div>
                </td> 
            </tr>
        </table>
        <div class="Thumbsall">
            <div id="ppage"></div>
            <div class="PrevnAct" id="Prev" onclick="TrGallery.goFrame(-1)"></div>
            <div id="ThumbsDivall"></div>
            <div class="NextnAct" id="Next" onclick="TrGallery.goFrame(1)"></div>
            <div id="GDescription"></div>
        </div>
        <div class="clear"></div>
        <script type="text/javascript">   
        TrGallery.addImg({f:"<?php echo GetIntroImg($html->getContent('cImage'))?>",t:"<?php echo $photo['cName']?>"}); 
        <?php
        foreach($photos as $i=>$photo)
        {
        ?>
        TrGallery.addImg({f:"<?php echo GetIntroImg($photo['cImage'])?>",t:"<?php echo $photo['cName']?>"});
        <?php
        }
        ?>
        TrGallery.init({dt: "ThumbsDivall",imginf: "4",rowt: "1"});
        </script>
        
        <?php
        if(count($contents)>0)
        {
            echo '<div class="otherpro">Other Product</div>';
        }
        ?>
    <?php }?>
    <div>
    <?php
    foreach($categories as $i=>$cat)
    {
        $link   = '/'.$html->url.'/'.$cat['cUrlString'];
    ?>
    <a class="list" href="<?php echo $link?>">
        <span class="tt"><?php echo $cat['cName']?></span>
        <span class="img"><img src="<?php echo GetIntroImg($cat['cImage'])?>" width="100%" border="0" /></span>
        <span class="msg"><?php echo $cat['cDescription']?></span>
    </a>
    <?php
    }
    ?>
    
     <?php
     
    foreach($contents as $i=>$cat)
    {
        $link   = '/'.getLinkParentCat($cat['iParentId']).'/'.$cat['cUrlString'].'.htm';
    ?>
    <a class="listcontent" href="<?php echo $link?>">
        <span class="tt"><?php echo $cat['cName']?></span>
        <span class="img"><img src="<?php echo GetIntroImg($cat['cImage'])?>" width="100%" border="0" /></span>
    </a>
    <?php
    }
    ?>
    </div>
</div>
